package com.eight.lesson3;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class BufferedReaderUtils {

	private BufferedReaderUtils() {}
	
	public static String processFile(BufferedReaderProcessor p) throws IOException {
		try(BufferedReader br = new BufferedReader(new FileReader("D:\\eclipse-projects\\data.txt"))) {
			return p.process(br);
		}
	}
}
